<template>
  <view>
    <view class="goods_list">
      <view class="goods_item" v-for="(item,index) in goods" :key="index">
        <image :src="item.image"></image>
        <view class="price">
          <text>{{item.price1}}</text>
          <text>{{item.price2}}</text>
        </view>
        <view class="name">
          {{item.name}}
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        goods: [
          {
            image: '../../static/lhp.jpg',
            price2: '￥2195',
            price1: '￥0',
            name: '李昊鹏(石河子)渣男一号'
          },
          {
            image: '../../static/lhp.jpg',
            price2: '￥2195',
            price1: '￥0',
            name: '李昊鹏(石河子)渣男一号'
          },
          {
            image: '../../static/lhp.jpg',
            price2: '￥2195',
            price1: '￥0',
            name: '李昊鹏(石河子)渣男一号'
          },
          {
            image: '../../static/lhp.jpg',
            price2: '￥2195',
            price1: '￥0',
            name: '李昊鹏(石河子)渣男一号'
          },
          {
            image: '../../static/lhp.jpg',
            price2: '￥2195',
            price1: '￥0',
            name: '李昊鹏(石河子)渣男一号'
          },
          {
            image: '../../static/lhp.jpg',
            price2: '￥2195',
            price1: '￥0',
            name: '李昊鹏(石河子)渣男一号'
          },
          {
            image: '../../static/lhp.jpg',
            price2: '￥2195',
            price1: '￥0',
            name: '李昊鹏(石河子)渣男一号'
          },
          {
            image: '../../static/lhp.jpg',
            price2: '￥2195',
            price1: '￥0',
            name: '李昊鹏(石河子)渣男一号'
          },
          {
            image: '../../static/lhp.jpg',
            price2: '￥2195',
            price1: '￥0',
            name: '李昊鹏(石河子)渣男一号'
          },
          {
            image: '../../static/lhp.jpg',
            price2: '￥2195',
            price1: '￥0',
            name: '李昊鹏(石河子)渣男一号'
          }
        ],
      }
    },
    methods: {
      
    },
    onPullDownRefresh() {
    		setTimeout(function () {
    			uni.stopPullDownRefresh();
    		}, 1000);
    }
  }
</script>

<style lang="scss">
.goods_list{
    text-align: center;
    padding: 0 15rpx;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    .goods_item{
      background: #ffffff;
      width: 335rpx;
      margin: 10rpx 0;
      padding: 15rpx;
      box-sizing: border-box;
      image{
        width: 80%;
        height: 150px;
        margin: 0 auto;
      }
      .price{
        color: #ff0000;
        font-size: 30rpx;
        text:nth-child(2){
          color: #cccccc;
          font-size: 28rpx;
          margin-left: 17rpx;
          text-decoration: line-through;
        }
      }
      .name{
        font-size: 28rpx;
        line-height: 50rpx;
        padding-bottom: 15rpx;
        padding-top: 15rpx;
      }
    }
  }
</style>
